package com.terry.processtest.myprocess;

import com.ehome.manage.module.utils.process.node.ProcessNode;
import com.ehome.manage.module.utils.process.process.BaseProcessDefinition;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author tanlvxu
 * @version 1.0
 * @information
 * @date 2021/11/13 11:19
 */
@Component
public class MyTestProcess extends BaseProcessDefinition<MyTestContext> {

    /**
     * 构造器
     * @param processNodes 流程节点实例列表(由Spring注入)
     */
    protected MyTestProcess(List<ProcessNode<MyTestContext>> processNodes) {
        super(processNodes);
    }

    @Override
    public String getName() {
        return "测试流程引擎";
    }

    @Override
    public MyTestContext createContext() {
        return new MyTestContext();
    }

}
